package models

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ ShareTargetModel = (*customShareTargetModel)(nil)

type (
	// ShareTargetModel is an interface to be customized, add more methods here,
	// and implement the added methods in customShareTargetModel.
	ShareTargetModel interface {
		shareTargetModel
	}

	customShareTargetModel struct {
		*defaultShareTargetModel
	}
)

// NewShareTargetModel returns a model for the database table.
func NewShareTargetModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ShareTargetModel {
	return &customShareTargetModel{
		defaultShareTargetModel: newShareTargetModel(conn, c, opts...),
	}
}
